import { connect } from 'react-redux'
import { makeLogout, getProfile} from '../actions'
import UserProfile from '../components/UserProfile'


const mapStateToProps = state => ({
    error: state.profile.error,
    isLogin: state.profile.isLogin,
    username: state.profile.username,
    first_name: state.profile.first_name,
    last_name: state.profile.last_name,
})




export default connect(
  mapStateToProps,
 {makeLogout, getProfile}
)(UserProfile)

